import { post } from './http.js'

const base = config.ip
const projectName = '/topnet-assess'

// 加分项--试点办获取所有科室
export const getSelectAllDepartment = p => post(`${base}${projectName}/sa-bonus-points/selectAllDepartment`, p)
// 加分项--试点办获取科室人员
export const getselectAllUserByDepartment = p =>
  post(`${base}${projectName}/sa-bonus-points/selectAllUserByDepartment`, p)

// 加分项--获取年和季度
export const selectYearAndQuarter = p => post(`${base}${projectName}/sa-bonus-points/selectYearAndQuarter`, p)

/** *********************** 加分项 新*************************/
// 加分项--获取指标列表
export const listIndexList = p => post(`${base}${projectName}/sa-bonus-points/listIndexList`, p)
// 加分项--申请个人/部门加分项
export const addBonusPoints = p => post(`${base}${projectName}/sa-bonus-points/addBonusPoints`, p)
// 加分项--考核办录入加减分项
export const inputBonusPoints = p => post(`${base}${projectName}/sa-bonus-points/inputBonusPoints`, p)
// 加分项--获取加减分项详情
export const getBonusPointsDetails = p => post(`${base}${projectName}/sa-bonus-points/getBonusPointsDetails`, p)
// 加分项--获取特色服务汇总列表
export const listSummaryData = p => post(`${base}${projectName}/sa-bonus-points/listSummaryData`, p)
// 加分项--加分项审定
export const confirmBonusPoints = p => post(`${base}${projectName}/sa-bonus-points/confirmBonusPoints`, p)
// 加分项--驳回后修改加分项
export const updateBonusPoints = p => post(`${base}${projectName}/sa-bonus-points/updateBonusPoints`, p)
// 查看加分项申报列表(个人/部门)
export const listBonusPoints = p => post(`${base}${projectName}/sa-bonus-points/listBonusPoints`, p)
// 加分项--考核办查看加减分项录入列表
export const listInputBonusPoints = p => post(`${base}${projectName}/sa-bonus-points/listInputBonusPoints`, p)
// 获取加分项审定列表(个人/部门)
export const listBonusConfirm = p => post(`${base}${projectName}/sa-bonus-points/listBonusConfirm`, p)

// 获取加分项审定列表统计数据
export const listBonusConfirmListCount = p => post(`${base}${projectName}/sa-bonus-points/listBonusConfirmListCount`, p)

// 获取单位下所有人
export const getListAllUserByOrgId = p => post(`${base}${projectName}/sa-bonus-points/listAllUserByOrgId`, p)

// 加减分项退回
export const returnBonusPoints = p => post(`${base}${projectName}/sa-bonus-points/returnBonusPoints`, p)

// 获取加分项审定列表(个人/部门)顶部数目
export const getBonusConfirmListCount = p => post(`${base}${projectName}/sa-bonus-points/getBonusConfirmListCount`, p)

/** *********************** 加分项 新 结束*************************/
